﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using Fuse8.ContentManagementFramework.Web.ApplicationRuntime;
using Fuse8.Websites.InternalSites.TemplateWebsite.Policy;

namespace Fuse8.Websites.InternalSites.TemplateWebsite.Web.FrontEnd
{    
    public class MvcApplication : System.Web.HttpApplication
    {
       protected void Application_Start()
        {
            SitePolicy.Init();

            // do not delete. In future you may have admin-custom in your project and it won't work without this line
            ViewEngines.Engines.AddCustom<RazorViewEngine>(p => p.IsInArea("/admin-custom"), "admin-custom");
            ViewEngines.Engines.Add(new RazorViewEngine());
        }
    }
}